import request from '@/utils/request'

/**
 * 分页查询评论数据
 */
export function page(page, pageSize) {
  return request({
    url: '/cmt?page='+page+'&pageSize='+pageSize,
    method: 'get'
  })
}


/**
 * 根据一级评论的id获取所有回复
 */
export function details(id) {
  return request({
    url: '/cmt/details/'+id,
    method: 'get'
  })
}
